Add a test that has a labeled-by relation in it
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jun 2011 06:03:24 +0000 (02:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:07:57 +0000 (16:07 -0400)
tests/a11y/mnemonic.txt [new file with mode: 0644]
tests/a11y/mnemonic.ui [new file with mode: 0644]

diff --git a/tests/a11y/mnemonic.txt b/tests/a11y/mnemonic.txt
new file mode 100644 (file)
index 0000000..d7403c1
--- /dev/null
@@ -0,0 +1,11 @@
+window1
+  "window"
+  box1
+    "filler"
+    label1
+      "label"
+      name: Entry:
+      label-for: entry1
+    entry1
+      "text"
+      labelled-by: label1
diff --git a/tests/a11y/mnemonic.ui b/tests/a11y/mnemonic.ui
new file mode 100644 (file)
index 0000000..443f2cd
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="label" translatable="yes">_Entry:</property>
+            <property name="visible">True</property>
+            <property name="use_underline">True</property>
+            <property name="mnemonic_widget">entry1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry1">
+            <property name="text" translatable="yes">text</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>